package com.dpf.hou.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dpf.hou.pojo.Pet;
import com.dpf.hou.pojo.User;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface PetService {
    List<Pet> getAllPet();

    boolean addPet(Pet pet);

    boolean updatePet(Pet pet);

    Page<Pet> getPage(int page, int size);
    Page<Pet> getPageByName(int page,int size,String petname);

    boolean delBatch(List<Integer> petid);

    List<Pet> list();
    void saveBatch(List<Pet> list);

    Page<Pet> petGet(int page,int size,String petname);

    boolean updateById(Pet pet);
}
